package com.glsc.ngateway.flowable.service;

import com.glsc.ngateway.common.base.domain.mysql.flowable.FlowableEhrDeptinfo;
import com.glsc.ngateway.common.base.repo.mysql.flowable.FlowableEhrDeptinfoRepo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Deprecated
@Component
public class FlowableEhrDeptinfoService {

    Logger logger = LoggerFactory.getLogger(FlowableEhrDeptinfoService.class);

    @Autowired
    FlowableEhrDeptinfoRepo repo;

    public List<FlowableEhrDeptinfo> getDepartmentList() {
        return repo.findAll();
    }

    public List<FlowableEhrDeptinfo> getDepartmentList(List<Integer> depIds) {
        return repo.findAllByDepidIn(depIds);
    }
}
